package com.zzj.model.dto.post;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class PostUpdateDto {
    @NotNull(message = "请输入文章ID")
    private int id;

    @NotNull(message = "请输入文章可见性")
    private String visibility;
    @NotEmpty(message = "请输入标题")
    private String title;
    @NotEmpty(message = "请输入封面")
    private String cover;
    @NotEmpty(message = "请输入内容")
    private String content;
    @NotNull(message = "请输入创作者ID")
    private String userId;
    @NotEmpty(message = "请输入创作者用户名")
    private String username;
    @NotNull(message = "请输入分类ID")
    private String categoryId;
    @NotEmpty(message = "请输入分类名")
    private String categoryName;

    private String tags;
}
